<?php 
namespace app\superadmin\controller;
use app\superadmin\model\Index as IndexModel;
//继承Base控制器
class Notice extends Base
{
    public function noticelist()
    {
       $noticeres= \think\Db::name('notice')
             ->alias('a')
             ->join('__DINING__ b', 'a.did =b.shop_id')
             ->field('a.id,a.notice,a.ndate,b.shopname')
             ->paginate(1);
       $this->assign('noticeres',$noticeres);
      return $this->fetch();
    } 


}
